package com.atguigu.acyjl;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;
import android.widget.TextView;

import com.airbnb.lottie.LottieAnimationView;
import com.atguigu.acyjl.activity.PrimaryPage;

public class SplashScreen extends AppCompatActivity {
    TextView appName,version;
    LottieAnimationView lottie;
    Settings settings = new Settings();
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash_screen);

        appName = findViewById(R.id.appName);
        version = findViewById(R.id.version);
        lottie = findViewById(R.id.lottie1);



        lottie.animate().translationX(2000).setDuration(2000).setStartDelay(2900);

        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {

                Log.d("seeeeeee", "isFirstShow "+settings.isMarketFirstShow);
                Intent i = new Intent(getApplicationContext(), PrimaryPage.class);
                startActivity(i);
            }
        },3000);
    }
}
